//
//  GFNoLikeTableViewCell.m
//  GoodFood
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 荣伟峰. All rights reserved.
//

#import "GFNoLikeTableViewCell.h"

@interface GFNoLikeTableViewCell ()

@property (nonatomic, strong) UILabel *noLikeLabel;

@end

@implementation GFNoLikeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.noLikeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, self.contentView.frame.size.height)];
        
        self.noLikeLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.noLikeLabel];
    }
    return self;
}

-(void)setStr:(NSString *)str {
    
    if (_str != str) {
        _str = str;
    }
    self.noLikeLabel.text = str;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
